package com.doublefish.doublefishrobot.utils;

import com.tencent.bugly.crashreport.CrashReport;

public class CrashReportUtils {

    //测试版本用这个，方便直接注释代码
    public static void postTestException(String msg) {
        if (msg == null) {
            return;
        }
        Throwable t = new Throwable(msg);
        CrashReport.postCatchedException(t);
    }

    //正式版本用这个
    public static void postCatchedException(String msg) {
        if (msg == null) {
            return;
        }
        Throwable t = new Throwable(msg);
        CrashReport.postCatchedException(t);
    }
}
